<?php
namespace app\index\validate;

use think\Validate;

class Read extends Validate
{
    protected $rule = [
        'nid' => 'require|gt:0',
    ];

    protected $message = [
        'nid.require' => '请选择书籍',
        'nid.gt' => '请选择书籍'
    ];

    protected $scene = [
        'del'   => ['nid'],
    ];
}